﻿using Qlab.Core.Entities;
using Qlab.SharedKernel.Interfaces;
using System.Linq;
using System.Threading.Tasks;

namespace Qlab.Core
{
    public static class DatabasePopulator
    {
        public static async Task PopulateDatabase(IRepository todoRepository)
        {
            await todoRepository.AddAsync(new ToDoItem
            {
                Title = "Get Sample Working",
                Description = "Try to get the sample to build."
            });
            await todoRepository.AddAsync(new ToDoItem
            {
                Title = "Review Solution",
                Description = "Review the different projects in the solution and how they relate to one another."
            });
            await todoRepository.AddAsync(new ToDoItem
            {
                Title = "Run and Review Tests",
                Description = "Make sure all the tests run and review what they are doing."
            });
        }
    }
}